<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>修改博客页面</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/icon.css">

<script type="text/javascript" src="${pageContext.request.contextPath}/static/umeditor/third-party/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/umeditor/third-party/template.min.js"></script>
<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath}/static/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath}/static/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/umeditor/lang/zh-cn/zh-cn.js"></script>
<link href="${pageContext.request.contextPath}/static/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
</head>

<body>
	 <div id="p" class="easyui-panel" title="修改博客页面" style="padding: 10px;">
		<form action="${pageContext.request.contextPath}/admin/update.do" method="post">
			<table cellspacing="20px">			
					<!-- <td width="80px">序号：</td> -->
					<td><input type="hidden" name="id" value="${b.id }" style="width:400px" /></td>			
				<tr>
					<td width="80px">博客标题：</td>
					<td><input type="text" name="title" value="${b.title }" style="width:400px" /></td>
				</tr>
				 <tr>
					<td>所属类别：</td>
					<td><select id="blogTypeId" name="blog.blogType.typeId" class="easyui-combobox"
						name="blogType.id" style="width:154px" editable="false"
						panelHeight="auto">		
							<c:forEach items="${blogTypeList }" var="b">
								<option value="${b.typeId }">${b.typeName }</option>
							</c:forEach>
					</select></td>
					<td></td>
				</tr> 
				<tr>
					<td valign="top">博客内容：</td>
					<td><script type="text/plain" id="myEditor" name="content" style="width:800px;height:340px;">${b.content }</script></td>
				</tr>
				<tr>
					<td><input type="submit" value="确定修改"></td>
				</tr>
			</table>
		</form>
	</div> 
	<script type="text/javascript">
	    //实例化编辑器
	   var um = UM.getEditor('myEditor');
	   um.addListener('blur',function(){
	       					    
	    });	   
	</script> 
</body>
</html>
